home *** CD-ROM | disk | FTP | other *** search
/ The Arcade BBS / arcadebbs.zip / arcadebbs / bbstools / WWIV Mods / WWIVTAG.MOD < prev   
Encoding:
Text File  |  1994-05-02  |  6.4 KB  |  140 lines

  1. here it is, Killer Dwarf..
  2. 1Piano Man #32 7░▒▓ 1World Dominator 7▓▒░
  3. Sat Apr 30 15:25:01 1994
  4. 0R: net33: @13028 (via @13000) [17:19 05/01/94]
  5. 0R: net33: @13034 [15:38 04/30/94]
  6. ┌──────────────────────────────────────────────────────────────────────────┐
  7. │ Mod Name     » P-MAN01.MOD or RANDTAG.MOD     Author » Piano Man #32     │▄
  8. │ WWiV Version » 4.23 (should work on 4.2x)              SySop Utopia BBS  │█
  9. │ Difficulty   » █▒▒▒▒▒▒▒▒▒                              410-557-0868      │█
  10. │ Mod Version  » 1.00ß                     32@2 LiveNET 32@????? Renegade  │█
  11. │ Date Written » 5/1/94                    32@8 PlaNET  32@????? ChessNET  │█
  12. │                                                                          │█
  13. │ Description  » This will place random 1 line quotes at the end of your   │█
  14. │                messages. This will also places a small ad for your board │█
  15. │                there too. All of this is centered, and saved with the    │█
  16. │                message.                                                  │█
  17. └──────────────────────────────────────────────────────────────────────────┘█
  18.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  19.  
  20. [*------------------------------Disclaimer---------------------------------*]
  21.  
  22.      Although this mod has been throughly tested on my heavily modded 4.23
  23.   source, there is no guarantee made or implied that this will work. I am not
  24.   responsible for any damage caused directly or indirectly by this mod.
  25.      Feel free to distribute this, and use any of the ideas found in this mod
  26.   it is Freeware. I just ask that you tell me if your going to re-release it
  27.   with any changes. Although you may do this to my parts of the mod, there
  28.   are some parts in here that are copyrighted by WWIV Software Services, and
  29.   cannot be used by anybody without the consent of WWIV Software Services.
  30.   Failure to follow this is punishable by law.
  31.  
  32. [*--------------------------Extended Description---------------------------*]
  33.  
  34.      Whew! With THAT out of the way, here's what the mod does. First, it
  35.   takes a string and centers it in the message, this is your BBS ad. Mine
  36.   looks like this (Simple, Short, and Sweet) :
  37.  
  38.              1Utopia BBS 7┼ 1410-557-0868
  39.  
  40.   Then it picks a random number 0-9 and prints the corrosponding string,
  41.   centered, on the next line of the message, so the whole thing looks like
  42.   this:
  43.  
  44.              1Utopia BBS 7┼ 1410-557-0868
  45.        7Hey! I paid for that girl; and I want all the parts!
  46.  
  47.      This mod is written VERY inefficiently, but it works, and gets the job
  48.   done. Now, on with the mod!
  49.  
  50. [*-------------------------------Legend------------------------------------*]
  51.                ┌────────────────┐
  52.                │ Exhisting - == │
  53.                │ Add Line  - ++ │
  54.                │ Mod Line  - =* │
  55.                └────────────────┘
  56. [*--------------------------------Mod--------------------------------------*]
  57.  
  58.        Step 1 : Back up your source!
  59.  
  60.        Step 2 : Open MSGBASE.C and look for void inmsg(messagerec....)
  61.         At the top of the void, modify the lines as shown.
  62.  
  63. /* == */ void inmsg(messagerec *m1, char *title, int *anony, ....)
  64. /* == */ {
  65. /* =* */    char s[181],s1[181],s2[181],s3[181],ro[81],fnx[81],chx,*ss,*ss1,
  66. /* =* */      fn1[81], fn2[81],*nd, random_quoter[81], tag[81], tag1[81],
  67. /* =* */      tag2[81], tag3[81];
  68. /* =* */    int maxli,curli,done,save,savel,i,i1,i2,i3,i4,i5,i6,setanon,oiia,
  69. /* =* */      random_quote, num_over;
  70. /* == */    messagerec m;
  71. /* == */    long ll,l1;
  72.  
  73.        Step 3 : Still in void inmsg(...), search down into the void for the
  74.         Exhisting lines, and add where indicated.
  75.  
  76. /* == */      for (i5=0; i5<curli; i5++)
  77. /* == */    addline(b,&(lin[i5*LEN]),&l1);
  78. /* == */     }
  79. /* ++ */
  80. /* ++ */    addline(b,"",&l1);
  81. /* ++ */
  82. /* ++ */    randomize();
  83. /* ++ */
  84. /* ++ */    sprintf(tag2, "1Utopia BBS 7┼ 1410-557-0868");
  85. /* ++ */                /*   Chnage to whatever you want!  */
  86. /* ++ */    num_over=(80-strlen(stripcolors(tag2)))/2;
  87. /* ++ */    sprintf(tag3, " ");
  88. /* ++ */    for(i6=0; i6<num_over; i6++)
  89. /* ++ */     strcat(tag3, " ");
  90. /* ++ */    strcat(tag3, tag2);
  91. /* ++ */    addline(b,tag3,&l1);
  92. /* ++ */
  93. /* ++ */    random_quote=random(10);
  94. /* ++ */
  95. /* ++ */    npr("7Writing Random BBS Tag Number G%d7......\r\n",random_quote+1);
  96. /* ++ */
  97. /* ++ */    if(random_quote==0) sprintf(tag, "7Has Doom EVER worked over the modem?");
  98. /* ++ */    if(random_quote==1) sprintf(tag, "7ShareWare this!");
  99. /* ++ */    if(random_quote==2) sprintf(tag, "6Are thy tenaciously clinging to thine buttox?");
  100. /* ++ */    if(random_quote==3) sprintf(tag, "7Dinnis Leary is my GOD!");
  101. /* ++ */    if(random_quote==4) sprintf(tag, "7Hey! I paid for that girl, and I want all the parts!");
  102. /* ++ */    if(random_quote==5) sprintf(tag, "7Don't hate me 'cause I'm beautiful");
  103. /* ++ */    if(random_quote==6) sprintf(tag, "7Never Wiz on the electric fence");
  104. /* ++ */    if(random_quote==7) sprintf(tag, "7Call us, becuase we DON'T have a Bevis & Butthead sub");
  105. /* ++ */    if(random_quote==8) sprintf(tag, "7This could be the beginning of a beautiful friendship");
  106. /* ++ */    if(random_quote==9) sprintf(tag, "7What money?");
  107. /* ++ */           /* Make those whatever you want too. See Note 1 below */
  108. /* ++ */    num_over=(80-strlen(stripcolors(tag)))/2;
  109. /* ++ */    sprintf(tag1, " ");
  110. /* ++ */    for(i6=0; i6<num_over; i6++)
  111. /* ++ */       strcat(tag1, " ");
  112. /* ++ */    strcat(tag1,tag);
  113. /* ++ */    addline(b,tag1,&l1);
  114. /* ++ */
  115. /* == */ #ifdef OPT_MSG_TAG_ABILITY
  116.        ....
  117.  
  118.        Step 4 : Save and Re-Compile! Your done! 8)
  119.  
  120.   ■ Note 1 : You can change the random quotes to say whatever you want, but
  121.          if you want to have more then 10 then you have to change the 10
  122.          in the line that says "random_quote=random(10)" to whatever you
  123.          want. Then add more lines at the bottom of the if statements,
  124.          following the same pattern.
  125.  
  126. [*------------------------------End of Mod---------------------------------*]
  127.  
  128.     Please, let me know if you have any problems! my addresses are at the
  129.     top of the file. Thank you, and be on the lookout for more mods by me,
  130.     Piano Man.
  131.  
  132.                Utopia BBS -*- 410-557-0868
  133.         14.4, RenegadeNET, PlaNET, ChessNET, and LiveNET
  134.              Sysops: Ford Perfect/Piano Man
  135.  
  136. 7[1MSG Reply Status7] : 1maybe i should write this up?
  137.  
  138.                             1Utopia BBS 7┼ 1410-557-0868
  139.                                    7What money?
  140.